﻿using Microsoft.EntityFrameworkCore;
using SU.Center.Domain.RBAC;
using SU.Center.Domain.SY;
using System.Collections.Generic;

namespace SU.Center.Infa
{
    public class UserDbContext : DbContext
    {
        public UserDbContext(DbContextOptions<UserDbContext> options) : base(options)
        {
        }

        /// <summary>
        /// 用户信息表
        /// </summary>
        public DbSet<UserInfo> UserInfos { get; set; }

        /// <summary>
        /// 权限表
        /// </summary>
        public DbSet<Permissions> Permissions { get; set; }
        /// <summary>
        /// 角色与权限关联表
        /// </summary>
        public DbSet<RolePermissions> RolePermissions { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Roles> Roles { get; set; }
        /// <summary>
        ///  用户角色关联表
        /// </summary>
        public DbSet<UserRoles> UserRoles { get; set; }

        //溯源

        /// <summary>
        /// 养殖信息
        /// </summary>
        public DbSet<Breed> Dbset { get; set; }
        /// <summary>
        /// 保健信息
        /// </summary>
        public DbSet<Health> Healths { get; set; }
        /// <summary>
        /// 免疫表
        /// </summary>
        public DbSet<Immunity> Immunities { get; set; }
        /// <summary>
        /// 信息表
        /// </summary>
        public DbSet<Information> Information { get; set; }
        /// <summary>
        /// 图片信息
        /// </summary>
        public DbSet<PictureInfo> PictureInfos { get; set; }
        /// <summary>
        /// 加工企业
        /// </summary>
        public DbSet<ProcessingEnterprises> ProcessingEnterprises { get; set; }
        /// <summary>
        /// 加工信息
        /// </summary>
        public DbSet<ProcessingInformation> ProcessingInformation { get; set; }
        /// <summary>
        /// 产品表
        /// </summary>
        public DbSet<Product> Products { get; set; }
        /// <summary>
        /// 原料表
        /// </summary>
        public DbSet<RawMaterial> RawMaterials { get; set; }
        /// <summary>
        /// 屠宰信息
        /// </summary>
        public DbSet<SlaughterInformation> SlaughterInformation { get; set; }
        /// <summary>
        /// 屠宰公司
        /// </summary>
        public DbSet<SlaughteringEnterprises> SlaughteringEnterprises { get; set; }
    }
}
